# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-pyparted
_pkgname=pyparted
pkgver=3.12.0
pkgrel=0
pkgdesc="Python bindings for GNU parted (libparted)"
url="https://github.com/dcantrell/pyparted"
arch="all"
license="GPL-2.0-or-later"
depends="python3"
makedepends="python3-dev py3-setuptools parted-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/dcantrell/pyparted/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-pyparted # Backwards compatibility
provides=py-pyparted=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
c1779c16868799bbff0905ea908db668823d1c238b9a06bcd62b24f9681fdd1e9378e904a91eb5e426a6e264cf1f2feee984a514e9098bf10147643bf58aa918  py3-pyparted-3.12.0.tar.gz
"
